<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">
    <link rel="shortcut icon" href="images/favicon.ico">
    <title th:text="#{common.title}">疫情信息系统</title>

    <!--dynamic table-->
    <link th:href="@{/js/advanced-datatable/css/demo_page.css}" rel="stylesheet"/>
    <link th:href="@{/js/advanced-datatable/css/demo_table.css}" rel="stylesheet"/>
    <link rel="stylesheet" th:href="@{/js/data-tables/DT_bootstrap.css}"/>

    <div th:include="common::commonheader"></div>
</head>

<body class="sticky-header">

<section>
    <div th:replace="common::#leftmenu"></div>

    <!-- main content start-->
    <div class="main-content">

        <div id="headermenu" class="header-section">

            <!--toggle button start-->
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
            <!--toggle button end-->

            <!--search start-->

            <!--search end-->

            <!--notification menu start -->
            <div class="menu-right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle info-number" data-toggle="dropdown">
                            <i class="fa fa-tasks"></i>
                            <span class="badge">5</span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-head pull-right">
                            <h5 class="title">[[#{common.60}]]</h5>
                            <ul class="dropdown-list user-list">
                                <li class="new">
                                    <a th:href="@{/editable_table}">
                                        <div class="task-info">
                                            <div>[[#{common.59}]]</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 40%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="40" role="progressbar" class="progress-bar progress-bar-warning">
                                                <span class="">40%</span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="new">
                                    <a th:href="@{/responsive_table}">
                                        <div class="task-info">
                                            <div>[[#{common.61}]]</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 90%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="90" role="progressbar" class="progress-bar progress-bar-success">
                                                <span class="">90%</span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a th:href="@{/responsive_table}">
                                        <div class="task-info">
                                            <div>[[#{common.62}]]</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 66%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="66" role="progressbar" class="progress-bar progress-bar-info">
                                                <span class="">66% </span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a th:href="@{/out_table}">
                                        <div class="task-info">
                                            <div>[[#{common.63}]]</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 33%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="33" role="progressbar" class="progress-bar progress-bar-danger">
                                                <span class="">33% </span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a th:href="@{/employee}">
                                        <div class="task-info">
                                            <div>[[#{common.64}]]</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 80%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="80" role="progressbar" class="progress-bar">
                                                <span class="">80% </span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="new"><a th:href="@{/employee}">[[#{common.65}]]</a></li>
                            </ul>
                        </div>
                    </li>
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle info-number" data-toggle="dropdown">
                            <i class="fa fa-envelope-o"></i>
                            <span class="badge">4</span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-head pull-right">
                            <h5 class="title">[[#{common.66}]]</h5>
                            <ul class="dropdown-list normal-list">
                                <li class="new">
                                    <a href=""th:href="@{/mailTalk}">
                                        <span class="thumb"><img src="images/photos/user2.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">林主任 <span class="badge badge-success">new</span></span>
                                          <span class="msg">好的。</span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" th:href="@{/mailTalk1}">
                                        <span class="thumb"><img src="images/photos/user3.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">刘副主任<span class="badge badge-success">new</span></span>
                                          <span class="msg">不急，你先忙。</span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" th:href="@{/mailTalk2}">
                                        <span class="thumb"><img src="images/photos/user4.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">李副主任</span>
                                          <span class="msg">我在重病科室等你吧。</span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="" th:href="@{/mailTalk3}">
                                        <span class="thumb"><img src="images/photos/user5.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">姜主任<span class="badge badge-success">new</span></span>
                                          <span class="msg">没事。</span>
                                        </span>
                                    </a>
                                </li>

                                <li class="new"><a  th:href="@{/mail}">[[#{common.65}]]</a></li>
                            </ul>
                        </div>
                    </li>

                    <li>
                        <a th:href="@{/medic_zhang}" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <img src="images/photos/user1.png" alt="" />
                            张林伟
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                            <li><a th:href="@{/medic_zhang}" ><i class="fa fa-user"></i> [[#{common.58user_information}]]</a></li>
                            <li><a th:href="@{/login}"><i class="fa fa-sign-out"></i> [[#{common.57}]]</a></li>
                        </ul>
                    </li>

                </ul>
            </div>
            <!--notification menu end -->

        </div>

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                物资申请表
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a th:href="@{/main.html}">主页</a>
                </li>
                <li>
                    <a href="">物资信息目录</a>
                </li>
                <li class="active"> 物资申请表</li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">

            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            物资申请信息表
                            <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal-1" class="modal fade">
                                <div class="modal-dialog">
                                    <div class="modal-content">
                                        <div class="modal-header">
                                            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                                            <h4 class="modal-title">物资申请</h4>
                                        </div>
                                        <div class="modal-body">

                                            <form class="form-horizontal" role="form"th:action="@{/medic/add}"  method="post">

                                                <div class="form-group">
                                                    <label  class="col-lg-2 col-sm-2 control-label">申请人姓名</label>
                                                    <div class="col-lg-10">
                                                        <input type="text" class="form-control" name="name"  placeholder="张三">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label  class="col-lg-2 col-sm-2 control-label">申请物资id</label>
                                                    <div class="col-lg-10">
                                                        <input type="text" class="form-control"  name="title" placeholder="11">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label  class="col-lg-2 col-sm-2 control-label">申请物资名称</label>
                                                    <div class="col-lg-10">
                                                        <input type="text" class="form-control"  name="sname" placeholder="口罩">
                                                    </div>
                                                </div>
                                                <!--<label class="col-sm-2 control-label col-lg-2" >选择物资</label>
                                                <div class="col-lg-10">
                                                    <select class="form-control m-bot15">
                                                        <option th:value="${sources.id}" th:each="source:${sources}" th:text="${sources.name}">1</option>

                                                    </select>
                                                </div>-->
                                                <div class="form-group">
                                                    <label  class="col-lg-2 col-sm-2 control-label">申请数量</label>
                                                    <div class="col-lg-10">
                                                        <input type="text" class="form-control" name="note" placeholder="111">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label  class="col-lg-2 col-sm-2 control-label">电话号码</label>
                                                    <div class="col-lg-10">
                                                        <input type="text" class="form-control" name="phone" placeholder="19922223344">
                                                    </div>
                                                </div>


                                                <div class="form-group">
                                                    <div class="col-lg-offset-2 col-lg-10">
                                                        <div class="checkbox">
                                                            <label>
                                                                <input type="checkbox"> 记住我
                                                            </label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <div class="col-lg-offset-2 col-lg-10">
                                                        <button type="submit" class="btn btn-primary">提交</button>
                                                    </div>
                                                </div>
                                            </form>

                                        </div>

                                    </div>
                                </div>
                            </div>
                            <a href="#myModal-1" data-toggle="modal" class="btn btn-primary">
                                添加信息
                            </a>


                            <span class="tools pull-right">

                <a href="javascript:;" class="fa fa-chevron-down"></a>
                <a href="javascript:;" class="fa fa-times"></a>
             </span>
                        </header>
                        <div class="panel-body">
                            <div class="adv-table">

                                <table class="display table table-bordered" id="hidden-table-info">
                                    <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>编号</th>
                                        <th>申请人姓名</th>
                                        <th>申请物资id</th>
                                        <th>申请物资名称</th>
                                        <th>申请数量</th>
                                        <th>电话号码</th>
                                        <th>申请时间</th>
                                        <th>操作</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="gradeX" th:each="medic,stat:${page.records}">
                                        <td th:text="${stat.count}"></td>
                                        <td th:text="${medic.id}"></td>
                                        <td th:text="${medic.name}"></td>
                                        <td th:text="${medic.title}"></td>
                                        <td th:text="${medic.sname}"></td>
                                        <td th:text="${medic.note}"></td>
                                        <td th:text="${medic.phone}"></td>
                                        <td th:text="${#dates.format(medic.getDate(),'yyyy/MM/dd HH:mm:ss')}"></td>
                                        <td>
                                            <a th:href="@{/medic/delete/{id}(id=${medic.id},pn=${page.getCurrent()})}" class="btn btn-info" type="button">删除</a>
                                            <a th:href="@{/medic/update/{id}(id=${medic.id})}" data-toggle="modal" class="btn btn-warning " >
                                                修改
                                            </a>
                                            <!--th:href="@{/medic/edit/}+${medic.getId}"-->
                                        </td>


                                    </tr>
                                    </tbody>
                                </table>
                                <div class="row-fluid">
                                    <div class="span6">
                                        <div class="dataTables_info" id="hidden-table-info_info">当前第 [[${page.current}]] 页 总计 [[${page.pages}]] 页 共
                                            [[${page.total}]] 条记录
                                        </div>
                                    </div>
                                    <div class="span6">
                                        <div class="dataTables_paginate paging_bootstrap pagination">
                                            <ul>
                                                <li class="prev disabled"><a href="#">← 前一页</a></li>
                                                <li th:class="${num  == page.current?'active':''}"  th:each="num:${#numbers.sequence(1,page.pages)}">
                                                    <a th:href="@{/dynamic_table(pn=${num})}" >[[${num}]]</a>
                                                </li>
                                                <li class="next"><a href="#">后一页 → </a></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <div th:replace="common::#footer"></div>


    </div>
    <!-- main content end-->
</section>
<div th:replace="common::#commonscript"></div>


<!--dynamic table-->
<script type="text/javascript" language="javascript" src="js/advanced-datatable/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/data-tables/DT_bootstrap.js"></script>
<!--dynamic table initialization -->
<!--<script src="js/dynamic_table_init.js"></script>-->


</body>
</html>
